<?php
namespace app\common\validate;

use think\Validate;

class FinancialRecordValidate extends Validate
{
    protected $rule =   [
        'page|页数'            => 'require|integer',
        'limit|条数'           => 'require|integer',
        'user_id|用户ID'       => 'require|integer',
    ];
    
    protected $scene = [
        /** api */
        'list'       => ['user_id', 'page', 'limit'],

        /** admin */
        'list'      => ['page', 'limit'],
    ];
}